package com.weitu.emergency.mapper;

import com.weitu.emergency.entity.TeamAndRegion;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhangqingxi 2017/5/23
 */
public interface TeamAndRegionMapper {

    /**
     * @param emergencyTeamId team Id
     * @return 风险区域
     */
    List<TeamAndRegion> findByTeamId(@Param("emergencyTeamId") String emergencyTeamId);

    /**
     * @param paramList 需要插入的对象
     * @return 添加结果
     */
    Integer add(@Param("paramList") List<TeamAndRegion> paramList);

    /**
     *
     * @param emergencyTeamId team Id
     * @return 删除结果
     */
    Integer deleteByTeamId(@Param("emergencyTeamId") String emergencyTeamId);
}
